﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class Sys_UserEntity:NFinal.Struct
    {
		public System.Int64? ID {get;set;}
		public System.String UserName {get;set;}
		public System.String PassWord {get;set;}
		public System.DateTime? LastLoginTime {get;set;}
		public System.String LastLoginIP {get;set;}
		public System.Int32? LouPanID {get;set;}
		public System.Int32? Sex {get;set;}
		public System.String XingMing {get;set;}
		public System.String Tel {get;set;}
		public System.Int32? IsLock {get;set;}
		public System.Int32? PostId {get;set;}
		public System.Int32? UnitId {get;set;}
		public System.String Unitids {get;set;}
		public System.String EmpNo {get;set;}
		public System.Int32? IsOnJob {get;set;}
		public System.String PyCode {get;set;}
		public System.String ReMark {get;set;}
		public System.Int32? UserType {get;set;}
		public System.String STCode {get;set;}
		public System.Int32? Flag {get;set;}
		public System.String IMEI {get;set;}
		public System.String Photo {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"ID\":");
					tw.Write(ID==null?"null" : ID.ToString());
					tw.Write(",");
					tw.Write("\"UserName\":");
					tw.Write("\"");
					tw.Write(UserName==null?"null":UserName);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"PassWord\":");
					tw.Write("\"");
					tw.Write(PassWord==null?"null":PassWord);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"LastLoginTime\":");
					tw.Write("\"");
					tw.Write(LastLoginTime==null?"null":LastLoginTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"LastLoginIP\":");
					tw.Write("\"");
					tw.Write(LastLoginIP==null?"null":LastLoginIP);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"LouPanID\":");
					tw.Write(LouPanID==null?"null" : LouPanID.ToString());
					tw.Write(",");
					tw.Write("\"Sex\":");
					tw.Write(Sex==null?"null" : Sex.ToString());
					tw.Write(",");
					tw.Write("\"XingMing\":");
					tw.Write("\"");
					tw.Write(XingMing==null?"null":XingMing);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"Tel\":");
					tw.Write("\"");
					tw.Write(Tel==null?"null":Tel);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"IsLock\":");
					tw.Write(IsLock==null?"null" : IsLock.ToString());
					tw.Write(",");
					tw.Write("\"PostId\":");
					tw.Write(PostId==null?"null" : PostId.ToString());
					tw.Write(",");
					tw.Write("\"UnitId\":");
					tw.Write(UnitId==null?"null" : UnitId.ToString());
					tw.Write(",");
					tw.Write("\"Unitids\":");
					tw.Write("\"");
					tw.Write(Unitids==null?"null":Unitids);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"EmpNo\":");
					tw.Write("\"");
					tw.Write(EmpNo==null?"null":EmpNo);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"IsOnJob\":");
					tw.Write(IsOnJob==null?"null" : IsOnJob.ToString());
					tw.Write(",");
					tw.Write("\"PyCode\":");
					tw.Write("\"");
					tw.Write(PyCode==null?"null":PyCode);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"ReMark\":");
					tw.Write("\"");
					tw.Write(ReMark==null?"null":ReMark);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"UserType\":");
					tw.Write(UserType==null?"null" : UserType.ToString());
					tw.Write(",");
					tw.Write("\"STCode\":");
					tw.Write("\"");
					tw.Write(STCode==null?"null":STCode);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"Flag\":");
					tw.Write(Flag==null?"null" : Flag.ToString());
					tw.Write(",");
					tw.Write("\"IMEI\":");
					tw.Write("\"");
					tw.Write(IMEI==null?"null":IMEI);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"Photo\":");
					tw.Write("\"");
					tw.Write(Photo==null?"null":Photo);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
